import VueRouter from 'vue-router';
console.log('ok');
import HomeContainer from './components/toolbar/HomeContainer.vue'
import MemberContainer from './components/toolbar/MemberContainer.vue'
import SearchContainer from './components/toolbar/SearchContainer.vue'
import ShopcarContainer from './components/toolbar/ShopcarContainer.vue'

//创建路由对象
let router = new VueRouter({
    routes:[
        {path:'/',redirect:'/index'},
        {path:'/index',component:HomeContainer},
        {path:'/mem',component:MemberContainer},
        {path:'/shop',component:SearchContainer},
        {path:'/search',component:ShopcarContainer},

    ],
    linkActiveClass:'mui-active'
});

//暴露路由
export default router